<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Ajax extends CI_Controller {
    
    function Ajax(){
        parent::__construct();
        $this->load->helper('url');
    }
    
    
	public function index()
	{
		$this->load->view('ajax');
	}
	
	function getAjaxData(){
	    $params = $this->uri->uri_to_assoc();
	    $name='11';
	    if (!empty($params['name'])){
	        $name = $params['name'];
	    }
	    
	    
	    echo "你好啊！！".$name;
	}
}
